package com.example.pkmedical.Activity.usermsg;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;


import com.example.pkmedical.Activity.model.UserMessage;
import com.example.pkmedical.Base.BaseActivity;
import com.example.pkmedical.R;

import org.litepal.LitePal;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class NewPatientActivity extends BaseActivity {

    @BindView(R.id.main_house)
    ImageView mainHouse;
    @BindView(R.id.main_house_text)
    TextView mainHouseText;
    @BindView(R.id.main_date)
    TextView mainDate;
    @BindView(R.id.user_ok_bt)
    Button userOkBt;
    @BindView(R.id.user_ok_cancle)
    Button userOkCancle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_new_patient);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {
        mainHouse.setImageResource(R.drawable.img_title_usermsg);
        mainHouseText.setText(R.string.title_user);
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void showDialog(String... msg) {

    }

    @OnClick({R.id.user_ok_bt, R.id.user_ok_cancle})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.user_ok_bt:
                startActivity(new Intent(NewPatientActivity.this, NewPatientNextActivity.class));
//                overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
                NewPatientActivity.this.finish();

                break;
            case R.id.user_ok_cancle:
                finish();
                break;
        }
    }
}
